home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / docshell / nsIContentViewerEdit.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  9KB  |  278 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIContentViewerEdit.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIContentViewerEdit_h__
  6. #define __gen_nsIContentViewerEdit_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIContentViewerEdit */
  19. #define NS_ICONTENTVIEWEREDIT_IID_STR "1691a02f-53b2-4cb8-8769-48e7efc908b8"
  20.  
  21. #define NS_ICONTENTVIEWEREDIT_IID \
  22.   {0x1691a02f, 0x53b2, 0x4cb8, \
  23.     { 0x87, 0x69, 0x48, 0xe7, 0xef, 0xc9, 0x08, 0xb8 }}
  24.  
  25. class NS_NO_VTABLE nsIContentViewerEdit : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWEREDIT_IID)
  29.  
  30.   /* void search (); */
  31.   NS_IMETHOD Search(void) = 0;
  32.  
  33.   /* readonly attribute boolean searchable; */
  34.   NS_IMETHOD GetSearchable(PRBool *aSearchable) = 0;
  35.  
  36.   /* void clearSelection (); */
  37.   NS_IMETHOD ClearSelection(void) = 0;
  38.  
  39.   /* void selectAll (); */
  40.   NS_IMETHOD SelectAll(void) = 0;
  41.  
  42.   /* void copySelection (); */
  43.   NS_IMETHOD CopySelection(void) = 0;
  44.  
  45.   /* readonly attribute boolean copyable; */
  46.   NS_IMETHOD GetCopyable(PRBool *aCopyable) = 0;
  47.  
  48.   /* void copyLinkLocation (); */
  49.   NS_IMETHOD CopyLinkLocation(void) = 0;
  50.  
  51.   /* readonly attribute boolean inLink; */
  52.   NS_IMETHOD GetInLink(PRBool *aInLink) = 0;
  53.  
  54.   enum { COPY_IMAGE_TEXT = 1 };
  55.  
  56.   enum { COPY_IMAGE_HTML = 2 };
  57.  
  58.   enum { COPY_IMAGE_DATA = 4 };
  59.  
  60.   enum { COPY_IMAGE_ALL = -1 };
  61.  
  62.   /* void copyImage (in long aCopyFlags); */
  63.   NS_IMETHOD CopyImage(PRInt32 aCopyFlags) = 0;
  64.  
  65.   /* readonly attribute boolean inImage; */
  66.   NS_IMETHOD GetInImage(PRBool *aInImage) = 0;
  67.  
  68.   /* void cutSelection (); */
  69.   NS_IMETHOD CutSelection(void) = 0;
  70.  
  71.   /* readonly attribute boolean cutable; */
  72.   NS_IMETHOD GetCutable(PRBool *aCutable) = 0;
  73.  
  74.   /* void paste (); */
  75.   NS_IMETHOD Paste(void) = 0;
  76.  
  77.   /* readonly attribute boolean pasteable; */
  78.   NS_IMETHOD GetPasteable(PRBool *aPasteable) = 0;
  79.  
  80.   /* AString getContents (in string aMimeType, in boolean aSelectionOnly); */
  81.   NS_IMETHOD GetContents(const char *aMimeType, PRBool aSelectionOnly, nsAString & _retval) = 0;
  82.  
  83.   /* readonly attribute boolean canGetContents; */
  84.   NS_IMETHOD GetCanGetContents(PRBool *aCanGetContents) = 0;
  85.  
  86. };
  87.  
  88. /* Use this macro when declaring classes that implement this interface. */
  89. #define NS_DECL_NSICONTENTVIEWEREDIT \
  90.   NS_IMETHOD Search(void); \
  91.   NS_IMETHOD GetSearchable(PRBool *aSearchable); \
  92.   NS_IMETHOD ClearSelection(void); \
  93.   NS_IMETHOD SelectAll(void); \
  94.   NS_IMETHOD CopySelection(void); \
  95.   NS_IMETHOD GetCopyable(PRBool *aCopyable); \
  96.   NS_IMETHOD CopyLinkLocation(void); \
  97.   NS_IMETHOD GetInLink(PRBool *aInLink); \
  98.   NS_IMETHOD CopyImage(PRInt32 aCopyFlags); \
  99.   NS_IMETHOD GetInImage(PRBool *aInImage); \
  100.   NS_IMETHOD CutSelection(void); \
  101.   NS_IMETHOD GetCutable(PRBool *aCutable); \
  102.   NS_IMETHOD Paste(void); \
  103.   NS_IMETHOD GetPasteable(PRBool *aPasteable); \
  104.   NS_IMETHOD GetContents(const char *aMimeType, PRBool aSelectionOnly, nsAString & _retval); \
  105.   NS_IMETHOD GetCanGetContents(PRBool *aCanGetContents); 
  106.  
  107. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  108. #define NS_FORWARD_NSICONTENTVIEWEREDIT(_to) \
  109.   NS_IMETHOD Search(void) { return _to Search(); } \
  110.   NS_IMETHOD GetSearchable(PRBool *aSearchable) { return _to GetSearchable(aSearchable); } \
  111.   NS_IMETHOD ClearSelection(void) { return _to ClearSelection(); } \
  112.   NS_IMETHOD SelectAll(void) { return _to SelectAll(); } \
  113.   NS_IMETHOD CopySelection(void) { return _to CopySelection(); } \
  114.   NS_IMETHOD GetCopyable(PRBool *aCopyable) { return _to GetCopyable(aCopyable); } \
  115.   NS_IMETHOD CopyLinkLocation(void) { return _to CopyLinkLocation(); } \
  116.   NS_IMETHOD GetInLink(PRBool *aInLink) { return _to GetInLink(aInLink); } \
  117.   NS_IMETHOD CopyImage(PRInt32 aCopyFlags) { return _to CopyImage(aCopyFlags); } \
  118.   NS_IMETHOD GetInImage(PRBool *aInImage) { return _to GetInImage(aInImage); } \
  119.   NS_IMETHOD CutSelection(void) { return _to CutSelection(); } \
  120.   NS_IMETHOD GetCutable(PRBool *aCutable) { return _to GetCutable(aCutable); } \
  121.   NS_IMETHOD Paste(void) { return _to Paste(); } \
  122.   NS_IMETHOD GetPasteable(PRBool *aPasteable) { return _to GetPasteable(aPasteable); } \
  123.   NS_IMETHOD GetContents(const char *aMimeType, PRBool aSelectionOnly, nsAString & _retval) { return _to GetContents(aMimeType, aSelectionOnly, _retval); } \
  124.   NS_IMETHOD GetCanGetContents(PRBool *aCanGetContents) { return _to GetCanGetContents(aCanGetContents); } 
  125.  
  126. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  127. #define NS_FORWARD_SAFE_NSICONTENTVIEWEREDIT(_to) \
  128.   NS_IMETHOD Search(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Search(); } \
  129.   NS_IMETHOD GetSearchable(PRBool *aSearchable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchable(aSearchable); } \
  130.   NS_IMETHOD ClearSelection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearSelection(); } \
  131.   NS_IMETHOD SelectAll(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAll(); } \
  132.   NS_IMETHOD CopySelection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopySelection(); } \
  133.   NS_IMETHOD GetCopyable(PRBool *aCopyable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCopyable(aCopyable); } \
  134.   NS_IMETHOD CopyLinkLocation(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyLinkLocation(); } \
  135.   NS_IMETHOD GetInLink(PRBool *aInLink) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInLink(aInLink); } \
  136.   NS_IMETHOD CopyImage(PRInt32 aCopyFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyImage(aCopyFlags); } \
  137.   NS_IMETHOD GetInImage(PRBool *aInImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInImage(aInImage); } \
  138.   NS_IMETHOD CutSelection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CutSelection(); } \
  139.   NS_IMETHOD GetCutable(PRBool *aCutable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCutable(aCutable); } \
  140.   NS_IMETHOD Paste(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Paste(); } \
  141.   NS_IMETHOD GetPasteable(PRBool *aPasteable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPasteable(aPasteable); } \
  142.   NS_IMETHOD GetContents(const char *aMimeType, PRBool aSelectionOnly, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContents(aMimeType, aSelectionOnly, _retval); } \
  143.   NS_IMETHOD GetCanGetContents(PRBool *aCanGetContents) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanGetContents(aCanGetContents); } 
  144.  
  145. #if 0
  146. /* Use the code below as a template for the implementation class for this interface. */
  147.  
  148. /* Header file */
  149. class nsContentViewerEdit : public nsIContentViewerEdit
  150. {
  151. public:
  152.   NS_DECL_ISUPPORTS
  153.   NS_DECL_NSICONTENTVIEWEREDIT
  154.  
  155.   nsContentViewerEdit();
  156.  
  157. private:
  158.   ~nsContentViewerEdit();
  159.  
  160. protected:
  161.   /* additional members */
  162. };
  163.  
  164. /* Implementation file */
  165. NS_IMPL_ISUPPORTS1(nsContentViewerEdit, nsIContentViewerEdit)
  166.  
  167. nsContentViewerEdit::nsContentViewerEdit()
  168. {
  169.   /* member initializers and constructor code */
  170. }
  171.  
  172. nsContentViewerEdit::~nsContentViewerEdit()
  173. {
  174.   /* destructor code */
  175. }
  176.  
  177. /* void search (); */
  178. NS_IMETHODIMP nsContentViewerEdit::Search()
  179. {
  180.     return NS_ERROR_NOT_IMPLEMENTED;
  181. }
  182.  
  183. /* readonly attribute boolean searchable; */
  184. NS_IMETHODIMP nsContentViewerEdit::GetSearchable(PRBool *aSearchable)
  185. {
  186.     return NS_ERROR_NOT_IMPLEMENTED;
  187. }
  188.  
  189. /* void clearSelection (); */
  190. NS_IMETHODIMP nsContentViewerEdit::ClearSelection()
  191. {
  192.     return NS_ERROR_NOT_IMPLEMENTED;
  193. }
  194.  
  195. /* void selectAll (); */
  196. NS_IMETHODIMP nsContentViewerEdit::SelectAll()
  197. {
  198.     return NS_ERROR_NOT_IMPLEMENTED;
  199. }
  200.  
  201. /* void copySelection (); */
  202. NS_IMETHODIMP nsContentViewerEdit::CopySelection()
  203. {
  204.     return NS_ERROR_NOT_IMPLEMENTED;
  205. }
  206.  
  207. /* readonly attribute boolean copyable; */
  208. NS_IMETHODIMP nsContentViewerEdit::GetCopyable(PRBool *aCopyable)
  209. {
  210.     return NS_ERROR_NOT_IMPLEMENTED;
  211. }
  212.  
  213. /* void copyLinkLocation (); */
  214. NS_IMETHODIMP nsContentViewerEdit::CopyLinkLocation()
  215. {
  216.     return NS_ERROR_NOT_IMPLEMENTED;
  217. }
  218.  
  219. /* readonly attribute boolean inLink; */
  220. NS_IMETHODIMP nsContentViewerEdit::GetInLink(PRBool *aInLink)
  221. {
  222.     return NS_ERROR_NOT_IMPLEMENTED;
  223. }
  224.  
  225. /* void copyImage (in long aCopyFlags); */
  226. NS_IMETHODIMP nsContentViewerEdit::CopyImage(PRInt32 aCopyFlags)
  227. {
  228.     return NS_ERROR_NOT_IMPLEMENTED;
  229. }
  230.  
  231. /* readonly attribute boolean inImage; */
  232. NS_IMETHODIMP nsContentViewerEdit::GetInImage(PRBool *aInImage)
  233. {
  234.     return NS_ERROR_NOT_IMPLEMENTED;
  235. }
  236.  
  237. /* void cutSelection (); */
  238. NS_IMETHODIMP nsContentViewerEdit::CutSelection()
  239. {
  240.     return NS_ERROR_NOT_IMPLEMENTED;
  241. }
  242.  
  243. /* readonly attribute boolean cutable; */
  244. NS_IMETHODIMP nsContentViewerEdit::GetCutable(PRBool *aCutable)
  245. {
  246.     return NS_ERROR_NOT_IMPLEMENTED;
  247. }
  248.  
  249. /* void paste (); */
  250. NS_IMETHODIMP nsContentViewerEdit::Paste()
  251. {
  252.     return NS_ERROR_NOT_IMPLEMENTED;
  253. }
  254.  
  255. /* readonly attribute boolean pasteable; */
  256. NS_IMETHODIMP nsContentViewerEdit::GetPasteable(PRBool *aPasteable)
  257. {
  258.     return NS_ERROR_NOT_IMPLEMENTED;
  259. }
  260.  
  261. /* AString getContents (in string aMimeType, in boolean aSelectionOnly); */
  262. NS_IMETHODIMP nsContentViewerEdit::GetContents(const char *aMimeType, PRBool aSelectionOnly, nsAString & _retval)
  263. {
  264.     return NS_ERROR_NOT_IMPLEMENTED;
  265. }
  266.  
  267. /* readonly attribute boolean canGetContents; */
  268. NS_IMETHODIMP nsContentViewerEdit::GetCanGetContents(PRBool *aCanGetContents)
  269. {
  270.     return NS_ERROR_NOT_IMPLEMENTED;
  271. }
  272.  
  273. /* End of implementation class template. */
  274. #endif
  275.  
  276.  
  277. #endif /* __gen_nsIContentViewerEdit_h__ */
  278.